std::priority_queue::empty
From Cppreference
< cpp | container | priority queue
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Containers library | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
| std::priority_queue | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
| bool empty() const;
|
||
Checks if the underlying container has no elements, i.e. whether c.empty().
Contents |
[edit] Parameters
(none)
[edit] Return value
true if the underlying container is empty, false otherwise
[edit] Complexity
constant
[edit] See also
|
returns the number of elements (public member function) |
|